﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace KitBuildingWF.Views
{
    public partial class SearchForm : Form
    {
        private string searchText = null;

        public SearchForm()
        {
            InitializeComponent();
        }

        private void SearchFormSearchBtn_Click(object sender, EventArgs e)
        {
            if (SearchTextBox.Text.Trim().Length > 0)
            {
                searchText = SearchTextBox.Text.Trim();
            }

            this.Close();
        }

        public string GetSearchText()
        {
            return searchText;
        }
    }
}
